home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 61 66 | 65 70 2e 79 6f 72 6b 75 |Path: af|ep.yorku|
|00000010| 2e 63 61 21 6b 65 6e 0a | 46 72 6f 6d 3a 20 4b 65 |.ca!ken.|From: Ke|
|00000020| 6e 20 3c 6b 65 6e 40 61 | 66 65 70 2e 79 6f 72 6b |n <ken@a|fep.york|
|00000030| 75 2e 63 61 3e 0a 4e 65 | 77 73 67 72 6f 75 70 73 |u.ca>.Ne|wsgroups|
|00000040| 3a 20 63 6f 6d 70 2e 6c | 61 6e 67 2e 63 2b 2b 0a |: comp.l|ang.c++.|
|00000050| 53 75 62 6a 65 63 74 3a | 20 46 61 73 74 65 72 20 |Subject:| Faster |
|00000060| 46 49 4c 45 20 73 75 62 | 72 6f 75 74 69 6e 65 73 |FILE sub|routines|
|00000070| 20 69 6e 20 73 74 61 6e | 64 61 72 64 20 43 3f 0a | in stan|dard C?.|
|00000080| 44 61 74 65 3a 20 57 65 | 64 2c 20 33 20 4a 61 6e |Date: We|d, 3 Jan|
|00000090| 20 31 39 39 36 20 31 31 | 3a 33 39 3a 32 31 20 2d | 1996 11|:39:21 -|
|000000a0| 30 35 30 30 0a 4f 72 67 | 61 6e 69 7a 61 74 69 6f |0500.Org|anizatio|
|000000b0| 6e 3a 20 59 6f 72 6b 20 | 55 6e 69 76 65 72 73 69 |n: York |Universi|
|000000c0| 74 79 2c 20 4f 6e 74 61 | 72 69 6f 2c 20 43 61 6e |ty, Onta|rio, Can|
|000000d0| 61 64 61 0a 4d 65 73 73 | 61 67 65 2d 49 44 3a 20 |ada.Mess|age-ID: |
|000000e0| 3c 50 69 6e 65 2e 41 33 | 32 2e 33 2e 39 31 2e 39 |<Pine.A3|2.3.91.9|
|000000f0| 36 30 31 30 33 31 31 31 | 39 34 32 2e 35 32 32 34 |60103111|942.5224|
|00000100| 39 41 2d 31 30 30 30 30 | 30 2d 31 30 30 30 30 30 |9A-10000|0-100000|
|00000110| 2d 31 30 30 30 30 30 2d | 31 30 30 30 30 30 2d 31 |-100000-|100000-1|
|00000120| 30 30 30 30 30 40 61 66 | 65 70 2e 79 6f 72 6b 75 |00000@af|ep.yorku|
|00000130| 2e 63 61 3e 0a 4e 4e 54 | 50 2d 50 6f 73 74 69 6e |.ca>.NNT|P-Postin|
|00000140| 67 2d 48 6f 73 74 3a 20 | 61 66 65 70 2e 79 6f 72 |g-Host: |afep.yor|
|00000150| 6b 75 2e 63 61 0a 4d 69 | 6d 65 2d 56 65 72 73 69 |ku.ca.Mi|me-Versi|
|00000160| 6f 6e 3a 20 31 2e 30 0a | 43 6f 6e 74 65 6e 74 2d |on: 1.0.|Content-|
|00000170| 54 79 70 65 3a 20 54 45 | 58 54 2f 50 4c 41 49 4e |Type: TE|XT/PLAIN|
|00000180| 3b 20 63 68 61 72 73 65 | 74 3d 55 53 2d 41 53 43 |; charse|t=US-ASC|
|00000190| 49 49 0a 49 6e 2d 52 65 | 70 6c 79 2d 54 6f 3a 20 |II.In-Re|ply-To: |
|000001a0| 3c 31 39 39 36 30 31 30 | 33 31 36 31 39 2e 4c 41 |<1996010|31619.LA|
|000001b0| 41 35 32 32 34 30 40 61 | 66 65 70 2e 79 6f 72 6b |A52240@a|fep.york|
|000001c0| 75 2e 63 61 3e 0a 0a 0a | 49 20 66 6f 75 6e 64 20 |u.ca>...|I found |
|000001d0| 74 68 61 74 20 49 20 77 | 61 73 20 61 62 6c 65 20 |that I w|as able |
|000001e0| 74 6f 20 67 65 74 20 33 | 2d 34 20 74 69 6d 65 20 |to get 3|-4 time |
|000001f0| 66 61 73 74 65 72 20 70 | 65 72 66 6f 72 6d 61 6e |faster p|erforman|
|00000200| 63 65 20 62 79 20 75 73 | 69 6e 67 20 67 6f 6f 64 |ce by us|ing good|
|00000210| 20 0a 6f 6c 64 20 41 4e | 53 49 20 43 20 66 69 6c | .old AN|SI C fil|
|00000220| 65 20 61 63 63 65 73 73 | 69 6e 67 20 72 6f 75 74 |e access|ing rout|
|00000230| 69 6e 65 73 20 28 6c 69 | 6b 65 20 20 66 67 65 74 |ines (li|ke fget|
|00000240| 73 2c 20 66 73 65 65 6b | 2c 20 66 74 65 6c 6c 2c |s, fseek|, ftell,|
|00000250| 20 2e 2e 2e 65 74 63 2e | 29 0a 69 6e 73 74 65 61 | ...etc.|).instea|
|00000260| 64 20 6f 66 20 43 2b 2b | 20 73 74 72 65 61 6d 73 |d of C++| streams|
|00000270| 20 28 6c 69 6b 65 20 69 | 66 73 74 72 65 61 6d 3a | (like i|fstream:|
|00000280| 3a 67 65 74 6c 69 6e 65 | 2c 20 66 73 74 72 65 61 |:getline|, fstrea|
|00000290| 6d 3a 3a 73 65 65 6b 67 | 2c 20 2e 2e 2e 65 74 63 |m::seekg|, ...etc|
|000002a0| 2e 29 0a 49 20 77 72 6f | 74 65 20 74 68 65 20 70 |.).I wro|te the p|
|000002b0| 72 6f 67 72 61 6d 20 6f | 72 69 67 69 6e 61 6c 6c |rogram o|riginall|
|000002c0| 79 20 69 6e 20 43 2b 2b | 20 28 61 20 73 69 6d 70 |y in C++| (a simp|
|000002d0| 6c 65 20 6c 69 74 74 6c | 65 20 70 68 6f 6e 65 62 |le littl|e phoneb|
|000002e0| 6f 6f 6b 20 66 6f 72 20 | 6d 79 0a 6f 77 6e 20 75 |ook for |my.own u|
|000002f0| 73 65 29 20 61 6e 64 20 | 69 74 20 74 6f 6f 6b 20 |se) and |it took |
|00000300| 61 62 6f 75 74 20 39 20 | 73 65 63 6f 6e 64 73 20 |about 9 |seconds |
|00000310| 74 6f 20 73 63 61 6e 20 | 61 20 31 30 30 4b 62 20 |to scan |a 100Kb |
|00000320| 66 69 6c 65 20 66 6f 72 | 20 61 20 33 20 62 79 74 |file for| a 3 byt|
|00000330| 65 0a 73 74 72 69 6e 67 | 21 21 21 20 20 46 65 64 |e.string|!!! Fed|
|00000340| 20 75 70 2c 20 49 20 72 | 65 77 72 6f 74 65 20 69 | up, I r|ewrote i|
|00000350| 74 20 69 6e 20 43 20 61 | 6e 64 20 76 6f 69 6c 61 |t in C a|nd voila|
|00000360| 21 20 4e 6f 77 20 69 74 | 20 74 61 6b 65 73 20 32 |! Now it| takes 2|
|00000370| 20 73 65 63 73 21 0a 49 | 27 6d 20 75 73 69 6e 67 | secs!.I|'m using|
|00000380| 20 42 6f 72 6c 61 6e 64 | 20 43 2b 2b 20 76 32 2e | Borland| C++ v2.|
|00000390| 30 2e 0a 0a 44 6f 65 73 | 20 74 68 61 74 20 73 6f |0...Does| that so|
|000003a0| 75 6e 64 20 72 69 67 68 | 74 3f 20 20 4d 61 79 62 |und righ|t? Mayb|
|000003b0| 65 20 6d 79 20 63 6f 64 | 65 20 77 61 73 20 69 6e |e my cod|e was in|
|000003c0| 65 66 66 69 63 69 65 6e | 74 6c 79 20 77 72 69 74 |efficien|tly writ|
|000003d0| 74 65 6e 3f 0a 49 20 6b | 6e 6f 77 20 43 2b 2b 20 |ten?.I k|now C++ |
|000003e0| 69 73 20 67 65 6e 65 72 | 61 6c 6c 79 20 73 6c 6f |is gener|ally slo|
|000003f0| 77 65 72 20 74 68 61 6e | 20 43 20 62 75 74 20 49 |wer than| C but I|
|00000400| 20 64 69 64 6e 27 74 20 | 74 68 69 6e 6b 20 74 68 | didn't |think th|
|00000410| 61 74 20 0a 66 69 6c 65 | 20 73 74 75 66 66 20 77 |at .file| stuff w|
|00000420| 6f 75 6c 64 20 62 65 20 | 74 6f 6f 2e 20 20 20 57 |ould be |too. W|
|00000430| 68 61 74 20 64 69 64 20 | 49 20 64 6f 20 77 72 6f |hat did |I do wro|
|00000440| 6e 67 3f 20 41 6d 20 49 | 20 6d 69 73 73 69 6e 67 |ng? Am I| missing|
|00000450| 0a 73 6f 6d 65 74 68 69 | 6e 67 2e 20 20 4d 61 79 |.somethi|ng. May|
|00000460| 62 65 20 49 27 6c 6c 20 | 70 6f 73 74 20 74 68 65 |be I'll |post the|
|00000470| 20 63 6f 64 65 20 74 6f | 6f 2c 20 6c 61 74 65 72 | code to|o, later|
|00000480| 2e 20 48 61 73 20 61 6e | 79 6f 6e 65 0a 65 6c 73 |. Has an|yone.els|
|00000490| 65 20 6e 6f 74 69 63 65 | 64 20 74 68 69 73 20 74 |e notice|d this t|
|000004a0| 6f 6f 3f 0a 0a 43 6f 6d | 65 20 74 6f 20 74 68 69 |oo?..Com|e to thi|
|000004b0| 6e 6b 20 6f 66 20 69 74 | 2c 20 74 68 65 20 63 6f |nk of it|, the co|
|000004c0| 64 69 6e 67 20 69 6e 0a | 43 20 77 61 73 20 63 6c |ding in.|C was cl|
|000004d0| 65 61 6e 65 72 20 6c 6f | 6f 6b 69 6e 67 2c 20 74 |eaner lo|oking, t|
|000004e0| 6f 6f 2e 20 20 0a 0a 2d | 2d 2d 2d 2d 2d 2d 2d 2d |oo. ..-|--------|
|000004f0| 2d 2d 2d 2d 0a 41 6e 64 | 20 53 6f 20 55 6e 74 69 |----.And| So Unti|
|00000500| 6c 20 4e 65 78 74 20 54 | 69 6d 65 2e 2e 2e 0a 0a |l Next T|ime.....|
|00000510| 09 09 49 27 6d 20 4b 65 | 6e 0a 0a |..I'm Ke|n.. |
+--------+-------------------------+-------------------------+--------+--------+